//package org.sunflower.ice.infrastructure.strategy;
//
//import com.aliyun.ice20201109.Client;
//import com.aliyun.ice20201109.models.SubmitMediaProducingJobRequest;
//import com.aliyun.ice20201109.models.SubmitMediaProducingJobResponse;
//import org.sunflower.ice.infrastructure.MediaProducingJobTypeEnum;
//
//import java.util.function.Supplier;
//
///**
// * @description:
// * @author: TanJingyu
// * @create: 2021-10-11 13:32
// **/
//public class TemplateSubmitMediaProducingJob extends MediaProducingJobStrategy {
//    public TemplateSubmitMediaProducingJob(Client client) {
//        super(client);
//    }
//
//    @Override
//    public <T> SubmitMediaProducingJobResponse submit(Supplier<T> params) {
//        SubmitMediaProducingJobRequest submitMediaProducingJobRequest2 = new SubmitMediaProducingJobRequest();
////        submitMediaProducingJobRequest2.setTemplateId("IceSys_VideoMerge");
//        submitMediaProducingJobRequest2.setTemplateId("ttttt");
//        submitMediaProducingJobRequest2.setClipsParam("{\"VideoArray\":[\"****05512043f49f697f7425****\",\"****2788e810116a45109f2e****\",\"****67f44f4964e6c998dee8****\",]}");
//        submitMediaProducingJobRequest2.setOutputMediaConfig("{\"MediaURL\":\"http://****.sample.com/ice/\"}");
//
//        SubmitMediaProducingJobResponse submitMediaProducingJobResponse2 = null;
//        try {
//            submitMediaProducingJobResponse2 = client.submitMediaProducingJob(submitMediaProducingJobRequest2);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//
////        System.out.println("requestId : " + submitMediaProducingJobResponse2.getBody().getRequestId());
////        System.out.println("jobId : " + submitMediaProducingJobResponse2.getBody().getJobId());
////        System.out.println("projectId : " + submitMediaProducingJobResponse2.getBody().getProjectId());
//
//        return submitMediaProducingJobResponse2;
//    }
//
//    @Override
//    public MediaProducingJobTypeEnum submitType() {
//        return MediaProducingJobTypeEnum.TEMPLATE;
//    }
//}
